package com.ryan.mdp.advice.reference;

import org.aopalliance.aop.Advice;

import com.ryan.mdp.advice.AdviceFactory;

/**
 * 客户端缓存Advice工厂类
 * 
 * @author botao.liao
 * 
 */
public class MdpCacheAdviceFactory implements AdviceFactory {
    private Advice advice = null;

    public synchronized Advice getAdvice() {
        if (advice != null) {
            return advice;
        }
        advice = new MdpCacheAdvice();
        return advice;
    }
}
